package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the offersdetails database table.
 * 
 */
@Entity
@Table(name="offersdetails")
@NamedQuery(name="Offersdetail.findAll", query="SELECT o FROM Offersdetail o")
public class Offersdetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="offerdetail_id")
	private int offerdetailId;

	@Temporal(TemporalType.DATE)
	@Column(name="offerdetail_date")
	private Date offerdetailDate;

	@Column(name="offerdetail_number")
	private int offerdetailNumber;

	@Column(name="offerdetail_price")
	private BigDecimal offerdetailPrice;

	@Column(name="offerdetail_sum")
	private BigDecimal offerdetailSum;
	
	@Column(name="is_show")
	private int isShow;
	
	

	//bi-directional many-to-one association to Good
	@ManyToOne
	@JoinColumn(name="goo_id")
	private Good good;

	//bi-directional many-to-one association to Offer
	@ManyToOne
	@JoinColumn(name="off_id")
	private Offer offer;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="user_id")
	private User user;


	public Offersdetail() {
	}

	public int getOfferdetailId() {
		return this.offerdetailId;
	}

	public void setOfferdetailId(int offerdetailId) {
		this.offerdetailId = offerdetailId;
	}

	public Date getOfferdetailDate() {
		return this.offerdetailDate;
	}

	public void setOfferdetailDate(Date offerdetailDate) {
		this.offerdetailDate = offerdetailDate;
	}

	public int getOfferdetailNumber() {
		return this.offerdetailNumber;
	}

	public void setOfferdetailNumber(int offerdetailNumber) {
		this.offerdetailNumber = offerdetailNumber;
	}

	public BigDecimal getOfferdetailPrice() {
		return this.offerdetailPrice;
	}

	public void setOfferdetailPrice(BigDecimal offerdetailPrice) {
		this.offerdetailPrice = offerdetailPrice;
	}

	public BigDecimal getOfferdetailSum() {
		return this.offerdetailSum;
	}

	public void setOfferdetailSum(BigDecimal offerdetailSum) {
		this.offerdetailSum = offerdetailSum;
	}

	public Good getGood() {
		return this.good;
	}

	public void setGood(Good good) {
		this.good = good;
	}

	public Offer getOffer() {
		return this.offer;
	}

	public void setOffer(Offer offer) {
		this.offer = offer;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}



	public int getIsShow() {
		return isShow;
	}

	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}
	
	

}